package com.reluxer.service.impl;

import com.reluxer.service.SimpleService;

import java.util.Random;

public class SimpleServiceImpl implements SimpleService {

    private final Random random = new Random();

    @Override
    public void methodA() {
        System.out.println("invoker methodA");
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void methodB() {
        System.out.println("invoker methodB");
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void methodC() {
        System.out.println("invoker methodC");
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
